x86emul: fold/eliminate some local variables
authorJan Beulich <jbeulich@suse.com>
Mon, 9 Oct 2017 14:03:10 +0000 (16:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 9 Oct 2017 14:03:10 +0000 (16:03 +0200)
commit8993572b9c165644eff6fcd249d6170a16f4de44
tree7f5e86fe07d9a2e6ddbec070713bd42da1ea7e20
parent7869e2bafe11094260a69a31cb07d17901d07b8b
x86emul: fold/eliminate some local variables

Make i switch-wide (at once making it unsigned, as it should have been)
and introduce n (for immediate use in enter and aam/aad handling).
Eliminate on-stack arrays in pusha/popa handling. Use ea.val instead of
a custom variable in bound handling.

No (intended) functional change.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c